#include "DeviceUserBase.h"

namespace Display
{
	DeviceUserBase::DeviceUserBase(void)
	{
		device = nullptr;
		context = nullptr;
	}


	DeviceUserBase::~DeviceUserBase(void)
	{
		device = nullptr;
		context = nullptr;
	}

	ID3D11Device * DeviceUserBase::GetDevice()
	{
		return device;
	}

	ID3D11DeviceContext * DeviceUserBase::GetContext()
	{
		return context;
	}

	void DeviceUserBase::SetDevice(ID3D11Device * device)
	{
		this->device = device;
		this->device->GetImmediateContext(&this->context);
	}
}